"""
收款单首页页面
"""

from page.base_page import BasePage
from selenium.webdriver.common.by import By

class SkdPage(BasePage):
    url = "http://192.168.1.25/crm/index.php?m=finance&a=index&t=receivingorder"

    #定位器
    #添加收款单
    tj_ysk_locator = (By.CSS_SELECTOR,'body > div.container > div.row > div:nth-child(1) > div.pull-right > a')
    table_locator = (By.CSS_SELECTOR, 'body > div.container > div.row > div:nth-child(2) > table > tbody')
    #操作方法
    #点击添加收款单
    def click_skd_btn(self):
        self.driver.find_element(*self.tj_ysk_locator).click()

    # 获取表格
    # def get_table_element(self):
    #     return self.driver.find_element(*self.table_locator)